import request from '@/utils/request'

// 查询全部仓库
export function getList(params) {
  return request({
    url: '/warehouse/list',
    params
  })
}
// 分页查询仓库
export function getListPage(params) {
  return request({
    url: '/warehouse/page',
    params
  })
}
// 删除仓库
export const delList = (params) => {
  return request({
    url: `/warehouse`,
    method: 'DELETE',
    params
  })
}
// 新建初始化
export const CK = () => {
  return request({
    url: 'codeFactory/next/CK'
  })
}
// 新建
export const newWarehouse = (data) => {
  return request({
    url: '/warehouse',
    method: 'POST',
    data
  })
}
